/*
 * Script containing the AddChoice controller
 * 
 * Author: Chris Casola
 */

/**
 * Response when the user clicks the add choice button
 */
function AddChoiceController () {
	var newChoice = document.getElementById('choice').value;
	
	document.getElementById('addChoice').removeEventListener("click", addChoiceController, false);
	
	// send the choice to the server
	sendRequest(new addChoiceRequest(window.dlEvent.playerPosition, newChoice));
}